package com.gzpi.hwgggh.entity;

import com.gzpi.hwgggh.utils.CommonTools;
import com.gzpi.hwgggh.utils.GUID;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @date : 2020-12-21 17:05
 **/
public class DWG {

    private String ID; //唯一ID
    private String FID;//外键ID
    private String ZCFQ; //政策分区
    private String ZPWZ; //招牌位置
    private String BZ; //备注
    private String CTIME;//创建时间
    private String MTIME;//修改时间

    //没用到
    private String GHCS;
    private String GHZY;

    //
    private List<GGP> ggps; //广告牌信息
    private Map<String,Object> ggpmap; //保存排序合并显示广告牌属性
    private String IDNAME; //拼接后的显示名称
    private DWX dwx; //现状信息
    private DWTP dwtp; //图片信息


    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getFID() {
        return FID;
    }

    public void setFID(String FID) {
        this.FID = FID;
    }

    public String getZCFQ() {
        return ZCFQ;
    }

    public void setZCFQ(String ZCFQ) {
        this.ZCFQ = ZCFQ;
    }

    public String getZPWZ() {
        return ZPWZ;
    }

    public void setZPWZ(String ZPWZ) {
        this.ZPWZ = ZPWZ;
    }

    public String getBZ() {
        return BZ;
    }

    public void setBZ(String BZ) {
        this.BZ = BZ;
    }

    public String getCTIME() {
        return CTIME;
    }

    public void setCTIME(String CTIME) {
        this.CTIME = CTIME;
    }

    public String getMTIME() {
        return MTIME;
    }

    public void setMTIME(String MTIME) {
        this.MTIME = MTIME;
    }

    public String getGHCS() {
        return GHCS;
    }

    public void setGHCS(String GHCS) {
        this.GHCS = GHCS;
    }

    public String getGHZY() {
        return GHZY;
    }

    public void setGHZY(String GHZY) {
        this.GHZY = GHZY;
    }

    public List<GGP> getGgps() {
        return ggps;
    }

    public void setGgps(List<GGP> ggps) {
        this.ggps = ggps;
    }

    public Map<String, Object> getGgpmap() {
        return ggpmap;
    }

    public void setGgpmap(Map<String, Object> ggpmap) {
        this.ggpmap = ggpmap;
    }

    public String getIDNAME() {
        return IDNAME;
    }

    public void setIDNAME(String IDNAME) {
        this.IDNAME = IDNAME;
    }

    public DWX getDwx() {
        return dwx;
    }

    public void setDwx(DWX dwx) {
        this.dwx = dwx;
    }

    public DWTP getDwtp() {
        return dwtp;
    }

    public void setDwtp(DWTP dwtp) {
        this.dwtp = dwtp;
    }

    public DWG() {
    }

    public DWG(DWX dwx) {
        setDwx(dwx);
    }

    /**
     * 设置基本信息
     * @param dwx 点位现状信息
     */
    public void setDWX(DWX dwx){
        this.setFID(dwx.getID() != null ? dwx.getID() : null); //点位id
        this.setCTIME(CommonTools.getCurrentTime()); //创建时间
    }
}
